var serverSend = 'LC:'+
			'{"Type":0,"NName":"19","Name":"19",'+
				'"ArrCard":[{"N":5,"S":1},{"N":5,"S":2},{"N":5,"S":3},'+
							'{"N":6,"S":1},{"N":6,"S":2},{"N":10,"S":1},'+
							'{"N":7,"S":1},{"N":7,"S":2},{"N":5,"S":4},'+
							'{"N":10,"S":3}]'+			
			'}';
			
function processServerSend(){
	var index = serverSend.indexOf(':');
	if(serverSend.substr(0,index)=="LC"){
		start(serverSend.substr(index+1,serverSend.length));
	}
	
}

function jsonStart(strStart){
	var objStart = JSON.parse(strStart);
	var _type = objStart.Type;
	var _nName = objStart.NName;
	var _name = objStart.Name;
	var _arrNumId = [];
	var _arrSuitId = [];
	for(var i=0;i<objStart.ArrCard.length;i++){
		_arrNumId.push(objStart.ArrCard[i].N);
		_arrSuitId.push(objStart.ArrCard[i].S);
	}
	var re = [_type, _nName, _name, _arrNumId, _arrSuitId];
	return re;
}

function jsonInfo(strInfo){
	var objInfo = JSON.parse(strInfo);
	var _id = objInfo.PlayId;
	var _name = objInfo.PlayName;
	var _ag = objInfo.Mark;
	var _ip = objInfo.sIP;
	for(i=0;i<objStart.ArrCard.length;i++){
		_arrNumId.push(objStart.ArrCard[i].N);
		_arrSuitId.push(objStart.ArrCard[i].S);
	}
	var re = [_type, _nName, _name, _arrNumId, _arrSuitId];
	return re;
}

